<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/sys/dict/";  //应用的地址名
%>
<script type="text/javascript">
<!--
$(function(){
			$('#dictTree').tree({
			    url:'<%=basePath%>SysDictM_searchDictJsonTree.action',  //获取json格式的节点树
				onClick:function(node){
				  if(node.id!="")
					$("#dictListArea").load("<%=basePath%>SysDictItem_list.action?mid="+node.id);
				  else
				    $("#dictListArea").load("<%=basePath%>SysDictM_list.action");
				},
			    //加载数据失败的处理        
			    onLoadError: function () {    
	                $.messager.alert('消息提示','字典树加载失败，请稍后再试！','error'); 
	            } 
			});
});
//-->
</script>
<ul id="dictTree"></ul>